-- GENERATED SPELL FOR [Nethermine Burster] --


function spell0_23285(pUnit, Event) --@Bore,n/a--
pUnit:FullCastSpellOnTarget(32738,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23285', 20000, 1)
end

function spell1_23285(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(32714,pUnit)
pUnit:RegisterEvent('Sorts_23285', 8256, 1)
end

function spell2_23285(pUnit, Event) --@Poison,n/a--
pUnit:FullCastSpellOnTarget(31747,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23285', 2000, 1)
end

function Sorts_23285(pUnit, Event)
local choix_sorts_23285 = math.random(0, 2)
if choix_sorts_23285 == 0 then
pUnit:RegisterEvent('spell0_23285', 1, 1)
end
if choix_sorts_23285 == 1 then
pUnit:RegisterEvent('spell1_23285', 1, 1)
end
if choix_sorts_23285 == 2 then
pUnit:RegisterEvent('spell2_23285', 1, 1)
end
end

function mob23285_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23285', math.random(1500, 3000), 1)
end

function mob23285_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23285_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23285_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23285, 1, 'mob23285_Action')
RegisterUnitEvent(23285, 2, 'mob23285_Leave')
RegisterUnitEvent(23285, 3, 'mob23285_Kill')
RegisterUnitEvent(23285, 4, 'mob23285_Die')
